package dev.bong.annotation;


import dev.bong.validation.RoleTypeValidation;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = RoleTypeValidation.class)
public @interface RoleType {

    String message() default "角色类型错误";

    Class[] group() default {};

    Class<? extends Payload>[] payload() default {};


}

